package io.renren.modules.business.controller;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import io.renren.modules.business.service.BusAttendrecordService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 绩效考核记录
 * @author liao mengqing
 */
@RestController
@RequestMapping("business/attendrecord")
public class BusAttendrecord {

    @Autowired
    private BusAttendrecordService busAttendrecordService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    @RequiresPermissions("business:attendrecord:list")
    public R list(@RequestParam Map<String, Object> params){
        PageUtils page = busAttendrecordService.queryPage(params);
        return R.ok().put("page", page);
    }
}
